home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / bv0555.zip / TKSETUP.BAT < prev    next >
DOS Batch File  |  1992-05-14  |  2KB  |  79 lines

  1. @echo off
  2.  
  3. if "%1" == "" goto usage
  4. if "%2" == "" goto usage
  5.  
  6. IF "%2" == "3.5"   goto TypeOK
  7. IF "%2" == "5.25"  goto TypeOK
  8.  
  9. echo ***
  10. echo *** ERROR: %2 is not a valid disk type.  ***
  11. echo ***
  12. goto usage
  13.  
  14. :TypeOk
  15.  
  16. ECHO ****************************************************************
  17. echo *                                                              *
  18. echo * !!!!! WARNING WARNING WARNING WARNING WARNING WARNING  !!!!! *
  19. echo *  SINCE THIS BATCH FILE PERFORMS MINIMAL ERROR CHECKING,      *
  20. echo ***                    PLEASE  VERIFY  THAT                  ***
  21. echo ***       THE FOLLOWING PARAMETERS ARE CORRECT:              ***
  22. echo *                                                              *
  23. ECHO ****************************************************************
  24. ECHO .
  25. echo         Destination:    %1
  26. echo              Format:    %2 inch
  27. echo .
  28. echo .
  29. echo       Press Ctrl_C or Ctrl_Break to quit and begin again.
  30. PAUSE
  31. IF exist %1\*.* goto OldOne
  32.  
  33. Echo **** 
  34. Echo **** Creating Directories...
  35. Echo **** 
  36. echo                %1
  37. md %1
  38. goto committed
  39.  
  40. :OldOne
  41. Echo *****        You chose to install the Professional Toolkit 
  42. Echo *****         in subdirectories under an existing directory.
  43. Echo *****                    If this is NOT correct,
  44. Echo *****         Press Ctrl_C or Ctrl_Break NOW!
  45. Pause
  46. :committed
  47.  copy  \*.*  %1 > nul
  48.  %1\tksetup1.bat  %1 %2
  49.  
  50. :usage
  51. echo.
  52. echo  Usage: TKSETUP  {destination}  {disk type} 
  53. echo.
  54. echo      Destination:
  55. echo                   The *FULL* path to the destination
  56. echo                   directory, including the drive name.
  57. echo.
  58. echo                    The source drive will be the current
  59. echo                     drive from which TKSETUP is run.
  60. echo                     Please read the README.TXT file.
  61. echo.
  62. echo        This can be an existing directory.
  63. echo.
  64. echo                    If it is, the 6 files and 7 subdirectories
  65. echo                    will be appended to this directory.
  66. echo.
  67. pause
  68. echo.
  69. echo        Disk Type: 5.25" (1.2 meg) or  3.5" (1.44 meg) only.
  70. echo.
  71. echo                   This setup will not work with
  72. echo                   low-density disks.
  73. echo.
  74. echo      Examples:          TKSETUP  C:\VB 3.5
  75. echo                     OR  TKSETUP  C:\VB 5.25
  76. echo                     OR  TKSETUP  C:\VBPLUS 3.5
  77. echo                     OR  TKSETUP  C:\VBPLUS 5.25
  78.  
  79.